/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.menu.controller;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.Result;

import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.menu.model.*;
import com.gm.memberShip.menu.persistence.interfaces.*;
import com.gm.memberShip.menu.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


@Namespace("/UsersInRoles")
public class UsersInRolesAction extends UsersInRolesBaseAction { 

	protected static final String DEFAULT_SORT_COLUMNS = null; 
	
	 
	    
	@Action(value="list",results={@Result(name="success",location="/")})
	public String list() {
		return "success";
	}
	
	@Action(value="show",results={@Result(name="success",location="/")}) 
	public String show() {
		return "success";
	}
	
	@Action(value="create",results={@Result(name="success",location="/")})
	public String create() {
		return "success";
	}
	
	@Action(value="save",results={@Result(name="success",location="/")})
	public String save() {
		usersInRolesManager.save(usersInRoles);
		return "success";
	}
	
	@Action(value="edit",results={@Result(name="success",location="/")})
	public String edit() {
		return "success";
	}
	
	@Action(value="update",results={@Result(name="success",location="/")})
	public String update() {
		usersInRolesManager.update(this.usersInRoles);
		return "success";
	}
 
    @Action(value="delete",results={@Result(name="success",location="/")})
	public String delete() {
	   
			 
		return "success";
	}

}
